package com.zz.cc.owner.data;

import com.alipay.android.app.sdk.AliPay;
import com.zz.cc.owner.OwnerApplication;
import com.zz.common.app.BaseActivity;

import android.app.Application;
import android.os.Handler;

public class ModelCenter {
	private static final String TAG = "ModelCenter";
	
	private static ModelCenter sCenter;
	
	private Application mContext;
	
	public static String syncAlipay(BaseActivity activity, float cost) {
		return alipay.syncAlipay(activity, cost);
	}
	
	public static ModelCenter getCenter() {
		synchronized (TAG) {
			if(null == sCenter) {
				sCenter = new ModelCenter(OwnerApplication.getBaseApplication());
			}
		}
		return sCenter;
	}
	
	//limit Context as Application
	private ModelCenter(Application app) {
		mContext = app;
	}
	
	
	
}
